#!/bin/sh
oray_user='ucoxddns';
oray_pass='nji9VFR$';
oray_domain=nasok.imwork.net;
real_ip=`wget -q -O - http://pv.sohu.com/cityjson|awk '{print $5}'|sed '1,$s/[",]//g'`;
oray_ddns_api="http://$oray_user:$oray_pass@ddns.oray.com/ph/update?hostname=$oray_domain&myip=$real_ip";
result=`wget -q -O - $oray_ddns_api`;
echo -e "$result" >> /var/log/ddns.log;